package ex03;

public class Judge1 {
	public boolean panduan(String x){
		if(x.indexOf("@")!=-1&&x.indexOf(".")!=-1){
			if(x.indexOf("@")<x.indexOf(".")){
				if(!x.startsWith("@")){
					if(x.endsWith("com")||x.endsWith("cn")||x.endsWith("net")||x.endsWith("gov")||x.endsWith("edu")||x.endsWith("org")){
						return true;
					}
				}
			}
		}
		else{
			return false;
		}
		return false;
	}
}